// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/*!
 * @file ObjectCan.h
 * This header file contains the declaration of the described types in the IDL file.
 *
 * This file was generated by the tool fastddsgen.
 */

#ifndef _FAST_DDS_GENERATED_VIS_MSG_OBJECTCAN_H_
#define _FAST_DDS_GENERATED_VIS_MSG_OBJECTCAN_H_

#include <array>
#include <bitset>
#include <cstdint>
#include <map>
#include <string>
#include <vector>

#include <fastcdr/cdr/fixed_size_string.hpp>
#include <fastcdr/xcdr/external.hpp>
#include <fastcdr/xcdr/optional.hpp>

#include "FaultInfo_t.h"
#include "Header.h"
#include "Object_t.h"
#include "AlarmInfo_t.h"


#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#define eProsima_user_DllExport __declspec( dllexport )
#else
#define eProsima_user_DllExport
#endif  // EPROSIMA_USER_DLL_EXPORT
#else
#define eProsima_user_DllExport
#endif  // _WIN32

#if defined(_WIN32)
#if defined(EPROSIMA_USER_DLL_EXPORT)
#if defined(OBJECTCAN_SOURCE)
#define OBJECTCAN_DllAPI __declspec( dllexport )
#else
#define OBJECTCAN_DllAPI __declspec( dllimport )
#endif // OBJECTCAN_SOURCE
#else
#define OBJECTCAN_DllAPI
#endif  // EPROSIMA_USER_DLL_EXPORT
#else
#define OBJECTCAN_DllAPI
#endif // _WIN32

namespace eprosima {
namespace fastcdr {
class Cdr;
class CdrSizeCalculator;
} // namespace fastcdr
} // namespace eprosima



namespace vis_msg {



/*!
 * @brief This class represents the structure ObjectCan defined by the user in the IDL file.
 * @ingroup ObjectCan
 */
class ObjectCan : public Header
{
public:

    /*!
     * @brief Default constructor.
     */
    eProsima_user_DllExport ObjectCan();

    /*!
     * @brief Default destructor.
     */
    eProsima_user_DllExport ~ObjectCan();

    /*!
     * @brief Copy constructor.
     * @param x Reference to the object vis_msg::ObjectCan that will be copied.
     */
    eProsima_user_DllExport ObjectCan(
            const ObjectCan& x);

    /*!
     * @brief Move constructor.
     * @param x Reference to the object vis_msg::ObjectCan that will be copied.
     */
    eProsima_user_DllExport ObjectCan(
            ObjectCan&& x) noexcept;

    /*!
     * @brief Copy assignment.
     * @param x Reference to the object vis_msg::ObjectCan that will be copied.
     */
    eProsima_user_DllExport ObjectCan& operator =(
            const ObjectCan& x);

    /*!
     * @brief Move assignment.
     * @param x Reference to the object vis_msg::ObjectCan that will be copied.
     */
    eProsima_user_DllExport ObjectCan& operator =(
            ObjectCan&& x) noexcept;

    /*!
     * @brief Comparison operator.
     * @param x vis_msg::ObjectCan object to compare.
     */
    eProsima_user_DllExport bool operator ==(
            const ObjectCan& x) const;

    /*!
     * @brief Comparison operator.
     * @param x vis_msg::ObjectCan object to compare.
     */
    eProsima_user_DllExport bool operator !=(
            const ObjectCan& x) const;

    /*!
     * @brief This function copies the value in member objects
     * @param _objects New value to be copied in member objects
     */
    eProsima_user_DllExport void objects(
            const std::vector<Object_t>& _objects);

    /*!
     * @brief This function moves the value in member objects
     * @param _objects New value to be moved in member objects
     */
    eProsima_user_DllExport void objects(
            std::vector<Object_t>&& _objects);

    /*!
     * @brief This function returns a constant reference to member objects
     * @return Constant reference to member objects
     */
    eProsima_user_DllExport const std::vector<Object_t>& objects() const;

    /*!
     * @brief This function returns a reference to member objects
     * @return Reference to member objects
     */
    eProsima_user_DllExport std::vector<Object_t>& objects();


    /*!
     * @brief This function copies the value in member alarmInfo
     * @param _alarmInfo New value to be copied in member alarmInfo
     */
    eProsima_user_DllExport void alarmInfo(
            const AlarmInfo_t& _alarmInfo);

    /*!
     * @brief This function moves the value in member alarmInfo
     * @param _alarmInfo New value to be moved in member alarmInfo
     */
    eProsima_user_DllExport void alarmInfo(
            AlarmInfo_t&& _alarmInfo);

    /*!
     * @brief This function returns a constant reference to member alarmInfo
     * @return Constant reference to member alarmInfo
     */
    eProsima_user_DllExport const AlarmInfo_t& alarmInfo() const;

    /*!
     * @brief This function returns a reference to member alarmInfo
     * @return Reference to member alarmInfo
     */
    eProsima_user_DllExport AlarmInfo_t& alarmInfo();


    /*!
     * @brief This function copies the value in member faultInfo
     * @param _faultInfo New value to be copied in member faultInfo
     */
    eProsima_user_DllExport void faultInfo(
            const FaultInfo_t& _faultInfo);

    /*!
     * @brief This function moves the value in member faultInfo
     * @param _faultInfo New value to be moved in member faultInfo
     */
    eProsima_user_DllExport void faultInfo(
            FaultInfo_t&& _faultInfo);

    /*!
     * @brief This function returns a constant reference to member faultInfo
     * @return Constant reference to member faultInfo
     */
    eProsima_user_DllExport const FaultInfo_t& faultInfo() const;

    /*!
     * @brief This function returns a reference to member faultInfo
     * @return Reference to member faultInfo
     */
    eProsima_user_DllExport FaultInfo_t& faultInfo();


    /*!
     * @brief This function sets a value in member restrictAreaLenght
     * @param _restrictAreaLenght New value for member restrictAreaLenght
     */
    eProsima_user_DllExport void restrictAreaLenght(
            int32_t _restrictAreaLenght);

    /*!
     * @brief This function returns the value of member restrictAreaLenght
     * @return Value of member restrictAreaLenght
     */
    eProsima_user_DllExport int32_t restrictAreaLenght() const;

    /*!
     * @brief This function returns a reference to member restrictAreaLenght
     * @return Reference to member restrictAreaLenght
     */
    eProsima_user_DllExport int32_t& restrictAreaLenght();


    /*!
     * @brief This function sets a value in member mRestrictAreaIsValid
     * @param _mRestrictAreaIsValid New value for member mRestrictAreaIsValid
     */
    eProsima_user_DllExport void mRestrictAreaIsValid(
            bool _mRestrictAreaIsValid);

    /*!
     * @brief This function returns the value of member mRestrictAreaIsValid
     * @return Value of member mRestrictAreaIsValid
     */
    eProsima_user_DllExport bool mRestrictAreaIsValid() const;

    /*!
     * @brief This function returns a reference to member mRestrictAreaIsValid
     * @return Reference to member mRestrictAreaIsValid
     */
    eProsima_user_DllExport bool& mRestrictAreaIsValid();


    /*!
     * @brief This function sets a value in member mSelfTestStatus
     * @param _mSelfTestStatus New value for member mSelfTestStatus
     */
    eProsima_user_DllExport void mSelfTestStatus(
            bool _mSelfTestStatus);

    /*!
     * @brief This function returns the value of member mSelfTestStatus
     * @return Value of member mSelfTestStatus
     */
    eProsima_user_DllExport bool mSelfTestStatus() const;

    /*!
     * @brief This function returns a reference to member mSelfTestStatus
     * @return Reference to member mSelfTestStatus
     */
    eProsima_user_DllExport bool& mSelfTestStatus();


    /*!
     * @brief This function sets a value in member moduleTemperature
     * @param _moduleTemperature New value for member moduleTemperature
     */
    eProsima_user_DllExport void moduleTemperature(
            uint8_t _moduleTemperature);

    /*!
     * @brief This function returns the value of member moduleTemperature
     * @return Value of member moduleTemperature
     */
    eProsima_user_DllExport uint8_t moduleTemperature() const;

    /*!
     * @brief This function returns a reference to member moduleTemperature
     * @return Reference to member moduleTemperature
     */
    eProsima_user_DllExport uint8_t& moduleTemperature();

private:

    std::vector<Object_t> m_objects;
    AlarmInfo_t m_alarmInfo;
    FaultInfo_t m_faultInfo;
    int32_t m_restrictAreaLenght{0};
    bool m_mRestrictAreaIsValid{false};
    bool m_mSelfTestStatus{false};
    uint8_t m_moduleTemperature{0};

};

} // namespace vis_msg

#endif // _FAST_DDS_GENERATED_VIS_MSG_OBJECTCAN_H_



